<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <!-- Ajuste da fonte teste -->
   <!-- <style>
           .ui-widget {
	           font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	           font-size: 0.8em;
           }
    </style>-->
</h:head> 

<h:body>
	<h:form>
		<p:messages></p:messages>

		<p:panel header="Dados do Cliente">

			<p:panelGrid columns="2" id="pgUsuario">

				<h:outputText value="Nome" />
				<p:inputText value="#{clienteController.cliente.nome}"
					requiredMessage="Campo Nome Obrigatório"></p:inputText>
				
				<h:outputText value="Login" />					
				<p:inputText value="#{clienteController.cliente.login}"
					requiredMessage="Campo Nome Obrigatório"></p:inputText>

				<h:outputText value="CPF" />
				<p:inputText value="#{clienteController.cliente.cpf}"
					requiredMessage="Campo Nome Obrigatório"></p:inputText>

				<h:outputText value="Senha" />
				<p:password value="#{clienteController.cliente.senha}"
					requiredMessage="Campo Senha Obrigatório"></p:password>
					
			</p:panelGrid>

			<br />
			
			<p:commandButton styleClass="ui-priority-primary" value="salvar" update="@form" action="#{clienteController.salvar}">
			</p:commandButton>

		</p:panel>
	</h:form>
	
</h:body>
</html>
